error

public NetError error()

Returns a network error of the failed request converted to NetError if such conversion is valid, otherwise an empty Optional.